<template>
  <van-grid :column-num="5">
    <van-grid-item
      v-for="item in channel"
      :key="item.id"
      :icon="item.icon_url"
      :text="item.name"
      @click="jumpToChannel(item.id)"
    />
  </van-grid>
</template>
<script>
export default {
  props: ["channel"],
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {
    jumpToChannel(val){
      this.$emit('toChannel',val)
    }
  },
};
</script>

<style scoped lang="less">
</style>
